package com.vipbbo.spring.event;

import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * 定义监听事件
 * @author paidaxing
 */
public class TestEvent extends ApplicationEvent {
	public String msg;


	public TestEvent(Object source) {
		super(source);
	}

	public TestEvent(Object source, String msg) {
		super(source);
		this.msg = msg;
	}
	public void print () {
		System.out.println(msg) ;
	}
}
